Skip to content

test(execution): wait for KeyCutShort host runs under load and give licence tests their own path - #801

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/keycutshort-waits
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/keycutshort-waits

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #792

What

  • KeyCutShort waits 60 s for a run to end (was 10 s) and for the part's ready file (was 5 s). Each wait still ends on its condition.
  • The ready poll now asserts the file exists, so a timeout fails at the cause.
  • The licence tests build their run name from the test's temp dir, so /dev/shm/nullius-<name> is unique per run and removed on cleanup.
  • The Stop test asserts exit code 130, so a part that outlives a slow Stop and exits on its own fails.
  • Same timeout as test: write the osworld1 stand-in's given.json whole, and give slow drivers one shared limit #170 but local to this class, so the two do not conflict. Whichever lands second drops this class's wait override.

Touches

  • app/tests/test_execution.py only.

Verified

  • 8 CPUs beside a looping parallel.py, class run 25 times: main 6 failed, here 0.
  • Stop test with _kill_part delayed 32 s: fails here, passed before the exit-code check.
  • Suites: backend and routes OK.

Risk

  • A stuck run fails after 60 s, not 10 s.
  • Undo: revert.

Agents

  • Claude Code, Sonnet 5.5
  • Codex, GPT-6.2-Astra (review)

…icence tests their own path

A standard run on a host packs and copies the backend first, so under load it ends after the old 10 s wait and its ready file after the old 5 s poll. Both now wait 60 s and still fail a stuck run.

The licence tests used a fixed /dev/shm/nullius-<name>; each now has a name of its own.
@harenome
harenome marked this pull request as ready for review December 3, 2026 20:18
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit b911a90 into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/keycutshort-waits branch December 3, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests: KeyCutShort host tests fail under load on a fixed 10 s run wait and a 5 s ready poll

1 participant